package com.lovo.middleman.controller;

import com.lovo.middleman.bean.DetailedBean;
import com.lovo.middleman.service.IDetailedService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Detailed")
public class DetailedController {

    @Autowired
    IDetailedService iDetailedService;

    @RequestMapping("/getDetailedBeanByBuyId")
    public List<DetailedBean> getDetailedBeanByBuyId(int buyId){
       return iDetailedService.queryDetailedBeanByBuyId(buyId);
    }
}
